package com.hj.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author hj
 * @Date 2023/4/26
 * @Description: 系统异常
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SysException extends RuntimeException {

    private int code;

    private String msg;

    public SysException() {
    }

    public SysException(int code, String msg) {
        this.msg = msg;
        this.code = code;
    }

    public SysException(String msg, Throwable cause) {
        super(msg, cause);
    }


}